package com.cskaoyan.controller.stage;

import com.cskaoyan.model.vo.BaseRespVO;
import com.cskaoyan.model.vo.ExceptionVO;
import com.cskaoyan.model.vo.HomeIndexVO;
import com.cskaoyan.service.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：王李轶群
 * @description：商城主页
 * @date ：5/9/22 9:12 AM
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {
    @Autowired
    WxHomeService wxHomeService;

    @GetMapping("index")
    public BaseRespVO<HomeIndexVO> homeIndex(){
        BaseRespVO<HomeIndexVO> homeIndexVOBaseRespVO = wxHomeService.homeIndex();
        return homeIndexVOBaseRespVO;
    }

    @GetMapping("about")
    public ExceptionVO about(){
        return ExceptionVO.fine();
    }
}
